package cn.tedu.basic;

import java.util.Scanner;

/**本类用与复习分支结构*/
public class TestIf {
    public static void main(String[] args) {
        System.out.println("请输入您要测试的月份");
        Scanner scanner = new Scanner(System.in);
        int month = scanner.nextInt();
        if (month<=0||month>12){
            System.out.println("您输入的数据不正确");
        }else{
            if (month >=3 && month<= 5){
                System.out.println(month+"春天");
            }else if (month >=6 && month<= 8){
                System.out.println(month+"夏天");
            }else if (month >=9 && month<= 11){
                System.out.println(month+"秋天");
            }else{
                System.out.println("凌冬已至");
            }
        }
    }
}
